

use super::breakpoint::BreakPoint;

#[derive(Default)]
pub struct Backend {
    breakpoint: BreakPoint
}

impl Backend {
    pub fn breakpoint_mut(&mut self)-> &mut BreakPoint {
        & mut self.breakpoint
    }
    pub fn breakpoint(& self) -> &BreakPoint {
        & self.breakpoint
    }
}

#[cfg(test)]
mod test {
    use super::*;

    #[test]
    fn test_backend(){
        let mut backend = Backend::default();
        assert_eq!(0, backend.breakpoint().get());

        backend.breakpoint_mut().set(1u64);
        assert_eq!(1u64, backend.breakpoint().get());
    }
}
